package cn.antblog.code.test1;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;

/**
 * @author ：YangJingyi
 * @date ：Created in 2022/2/20 20:57
 * @description：TODO
 * @modified By：
 * @version: 1.0
 */
public class String2Json {
    public static void main(String[] args) {
        String text = "{\"RadarList\":[{\"Id\":1,\"Name\":\"SL3溜桶_后斜\",\"Working\":1},{\"Id\":2,\"Name\":\"SL3溜桶_后下\",\"Working\":1},{\"Id\":3,\"Name\":\"SL3溜桶_后正\",\"Working\":1},{\"Id\":4,\"Name\":\"SL3溜桶_左斜\",\"Working\":1},{\"Id\":5,\"Name\":\"SL3溜桶_左下(小\",\"Working\":1},{\"Id\":6,\"Name\":\"SL3溜桶_左下(大\",\"Working\":1},{\"Id\":7,\"Name\":\"SL3溜桶_左正\",\"Working\":1},{\"Id\":8,\"Name\":\"SL3溜桶_前斜\",\"Working\":1},{\"Id\":9,\"Name\":\"SL3溜桶_前下\",\"Working\":1},{\"Id\":10,\"Name\":\"SL3溜桶_前正\",\"Working\":1},{\"Id\":11,\"Name\":\"SL3溜桶_右斜\",\"Working\":1},{\"Id\":12,\"Name\":\"SL3溜桶_右下(小\",\"Working\":1},{\"Id\":13,\"Name\":\"SL3溜桶_右下(大\",\"Working\":1},{\"Id\":14,\"Name\":\"SL3溜桶_右正\",\"Working\":1},{\"Id\":15,\"Name\":\"SL3臂架_左中\",\"Working\":1},{\"Id\":16,\"Name\":\"SL3臂架_左前\",\"Working\":1},{\"Id\":17,\"Name\":\"SL3臂架_左前下\",\"Working\":1},{\"Id\":18,\"Name\":\"SL3臂架_右中\",\"Working\":1},{\"Id\":19,\"Name\":\"SL3臂架_右前\",\"Working\":1},{\"Id\":20,\"Name\":\"SL3臂架_右前下\",\"Working\":1},{\"Id\":43,\"Name\":\"SL3门腿_左前\",\"Working\":1},{\"Id\":44,\"Name\":\"SL3门腿_左后\",\"Working\":1},{\"Id\":45,\"Name\":\"SL3门腿_右前\",\"Working\":1},{\"Id\":46,\"Name\":\"SL3门腿_右后\",\"Working\":1}],\"ColliBucketDown\":{\"CurrentDistance\":11.0},\"ColliBucketFront\":{\"CurrentDistance\":6.512},\"ColliBucketBack\":{\"CurrentDistance\":4.8},\"ColliBucketLeft\":{\"CurrentDistance\":4.2},\"ColliBucketRight\":{\"CurrentDistance\":10.177},\"WalkingPosition_Plc\":111.8789,\"PitchAngle_Plc\":13.20777,\"YawAngle_Plc\":90.0,\"StretchLength_Plc\":2.740417,\"StealRulerLength\":0.0,\"BucketYawDecoder\":0.0}";

        JSONObject obj= JSON.parseObject(text);
        System.out.println(obj);

    }
}
